import React from "react";
import ReactDom from "react-dom";
import "./index.css";
function Count(props) {
  return <div className="count">{props.count}</div>;
}

class App extends React.Component {
  render() {
    const { name } = this.props;
    return (
      <h1>
        <Count count="1" />
        {name}
      </h1>
    );
  }
}

ReactDom.render(<App name="我是props1" />, document.getElementById("root"));
